<!-- js su dung cho phan quyen -->
<script type="text/javascript" src="<?php echo base_url()?>js/back_end/lib.js"></script>

<p class='msview'>
	<span>
		<?php echo $this->session->flashdata('msview'); ?>
	</span>
</p>
<div class="header2">
	<p class="pHead">
		<span>Lựa chọn các thuộc tính cho danh mục &gt;&gt;</span>
		<i style="text-shadow: 1px 1px #FFF;"><?php echo $category['name']; ?></i> 
	</p>
</div>

<div class="contentMain">	
<form name="AdminPermission" id="AdminPermission" action="<?php echo base_url();?>back_end/category_product/per/<? echo $ct_id; ?>" method="POST">
	<table class="tablePr" width="100%">
        <tr class="trPr1" align="center">
			<td width="5%" class="tdPr7"  height="25">
				STT
			</td>
			<td width="30%" class="tdPr7">Tên thộc tính</td>
			<td width="13%" class="tdPr7">Check</td>
		</tr>
	
	<?php
		$i = 0; 
		foreach ($cate_pp as $cate) {
			$i++;
	 		if($i % 2 == 0)
				 {
				 	$bgcolor="#dcf1f7";
				 }else{
				 	$bgcolor="#ecf1f7";
				 }	
	?>
	<tr class="contentList" bgcolor=<?php echo $bgcolor;?> align="center">
		<td width="9%" class="tdPr7">
			<?php echo $i; ?>
		</td>
		<td width="31%" class="tdPr7">
			<a href="#"><?php echo $cate['name']; ?></a>
		</td>
		<td width="15%" class="tdPr7">
			<input type="checkbox" name="ct_id[]" value="<?php echo $cate['ctpd_id'].'_'.$cate['properties_id']; ?>"  <?php if ($cate['kh']==1){ echo 'checked'; } ?>/>
		</td>
	</tr>
	<?php }?>
	<tr class="contentList">
		<td class="tdPr7" colspan="7">
			<input type="submit" value="Cập Nhật" class="buttonSM" name="add" />
			<input type="reset" value="Làm Lại" class="buttonSM" />
		</td>
	</tr>
</table>
</form>
</div>